package com.xikeda.service.imp;

import com.xikeda.dao.Register;
import com.xikeda.model.CourierTable;
import com.xikeda.model.UserTable;
import com.xikeda.model.UsernaadTable;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author Xiao Linqing
 * @date 2020/6/7 16:12
 */
@Service
public class RegisterService {
    @Resource
    private Register register;
    public void userregister(UserTable userTable){
        try{
            this.register.userregister(userTable);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
    public void courierregister(CourierTable courierTable){
        try{
            this.register.courierregister(courierTable);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
   /* public List userregister(@Param("true_name")String true_name,@Param("password")String password, @Param("user_name")String user_name,@Param("telephone")String telephone){
        List<UserTable> list=new ArrayList<UserTable>();
        try{
            list=this.register.userregister(true_name,password,user_name,telephone);
        }catch(Exception e){
            e.printStackTrace();
        }
        return list;
    }*/
}
